package com.bnzj.cloud.business.core.service;

import com.bnzj.cloud.business.core.persistence.entity.SysDictionaryType;
import com.bnzj.cloud.business.core.persistence.repository.SysDictionaryTypeRepository;
import com.bnzj.core.persistence.BaseService;
import com.bnzj.core.persistence.query.QueryHelpBean;
import org.springframework.stereotype.Service;

/**
 * @author barry
 * @date 2019-09-27
 */
@Service
public class SysDictionaryTypeService extends BaseService<SysDictionaryTypeRepository, SysDictionaryType, Long> {

    public static QueryHelpBean getQueryHelpBean() {
        String selectSQL = "select d.*";
        String whereSQL = " from bnz_sys_dictionary_type d where 1=1";
        QueryHelpBean queryBean = new QueryHelpBean(selectSQL + whereSQL, "select count(1)" + whereSQL, SysDictionaryType.class);
        return queryBean;
    }

}
